package com.qqtech.qquan.coupon.model;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.TimeUtil;

@SuppressWarnings("serial")
public class CouponUserVo extends CouponUser {
	/**
	 * 奖品图片
	 */
	private String drawImg;
	
	private BigDecimal price;

	/** 减多少钱 */
	private BigDecimal minusPrice;

	/** 状态CouponBaseTypeEnum:1-普通优惠卷;2-商城某件产品;3-服务类目;4-商城类目; */
	private java.lang.Integer bizzType;

	/** 业务ID（如商城产品id） */
	private java.lang.Integer bizzId;

	/** 商城、服务类目id */
	private java.lang.Integer categoryId;

	/** 名称 */
	private java.lang.String name;

	/** 描述 */
	private java.lang.String remark;
	private String couponName;
	/** 失效时间 */
	private String strExpireAt;

	/** 状态 */
	private String strStatus;

	/** 用户帐号 */
	private String userIdentity;

	/** 提交数据用到，用户id集合，多个用逗号隔开 */
	private String userIds;

	private Integer count; //优惠卷数量

	/** 给用户派送优惠券时的通知用户话术 */
	private java.lang.String pushMsg;
	
	public java.lang.Integer getBizzId() {
		return bizzId;
	}

	public java.lang.Integer getBizzType() {
		return bizzType;
	}

	public java.lang.Integer getCategoryId() {
		return categoryId;
	}

	public String getCouponName() {
		return couponName;
	}

	public String getDrawImg() {
		return drawImg;
	}

	public BigDecimal getMinusPrice() {
		return minusPrice;
	}

	public java.lang.String getName() {
		return name;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public java.lang.String getRemark() {
		return remark;
	}

	public String getStrExpireAt() {
		if (getExpireAt() == null) {
			strExpireAt = "永久有效";
		} else {
			strExpireAt = TimeUtil.getStringTimeByFormat(getExpireAt(), "yyyy-MM-dd HH:mm");
		}
		return strExpireAt;
	}

	public String getStrStatus() {
		return strStatus;
	}

	public String getUserIdentity() {
		return userIdentity;
	}

	public String getUserIds() {
		return userIds;
	}

	public void setBizzId(java.lang.Integer bizzId) {
		this.bizzId = bizzId;
	}

	public void setBizzType(java.lang.Integer bizzType) {
		this.bizzType = bizzType;
	}

	public void setCategoryId(java.lang.Integer categoryId) {
		this.categoryId = categoryId;
	}

	public void setCouponName(String couponName) {
		this.couponName = couponName;
	}

	public void setDrawImg(String drawImg) {
		this.drawImg = drawImg;
	}

	public void setMinusPrice(BigDecimal minusPrice) {
		this.minusPrice = minusPrice;
	}

	public void setName(java.lang.String name) {
		this.name = name;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public void setRemark(java.lang.String remark) {
		this.remark = remark;
	}

	public void setStrExpireAt(String strExpireAt) {
		this.strExpireAt = strExpireAt;
	}

	public void setStrStatus(String strStatus) {
		this.strStatus = strStatus;
	}

	public void setUserIdentity(String userIdentity) {
		this.userIdentity = userIdentity;
	}

	public void setUserIds(String userIds) {
		this.userIds = userIds;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public java.lang.String getPushMsg() {
		return pushMsg;
	}

	public void setPushMsg(java.lang.String pushMsg) {
		this.pushMsg = pushMsg;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
}